<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>JavaScript 日期</title>
</head>
<body>
<h2>new Date(milliseconds)</h2>
<p> 创建一个零时加毫秒的新日期对象:</p>
<!--January 1, 1970, 00:00:00 Universal Time）-->

<p id="demo"></p>

<script>
  var d = new Date(0);
  document.getElementById("demo").innerHTML = d;
</script>
</body>
</html>

<!--
运行结果:Thu Jan 01 1970 08:00:00 GMT+0800 (China Standard Time)

因为date()从1970年开始计时
-->